package com.cloud.util;


import com.cloud.feignService.FeignService;
import org.springframework.stereotype.Component;
import feign.hystrix.FallbackFactory;

@Component
public class HystrixClientFallbackFactory implements FallbackFactory<FeignService> {

    @Override
    public FeignService create(Throwable throwable) {
        return () -> "Feign + hystrix ,提供者服务挂了";
    }

}
